#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;
long long Fun(int n)
{
	if (n == 1)
	{
		return 1;
	}
	if (n == 2)
	{
		return 1;
	}
	else return Fun(n - 1) + Fun(n - 2);
}
int main()
{
	int n = 0;
	cin >> n;

	for (int i = 1; i <= n; i++)
	{
		int num = 0;
		cin >> num;
		cout << Fun(num) << endl;
	}
	return 0;
}